package com.yuelan.apartment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuelan.apartment.domain.ApaRoom;
import com.yuelan.apartment.domain.vo.ApaRoomVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description:
 * @Author: ZhaoYi
 * @date: 24-5-23 9:13
 */
@Mapper
public interface ApaRoomMapper extends BaseMapper<ApaRoom> {

    /**
     * 批量删除房租信息
     */
    int deleteRoomByIds(Long[] ids);

    /**
     * 根据房客id修改房间状态
     */
    int updateRoomStateByTenantId(Long[] ids);

    /**
     * 查询房间
     */
    List<ApaRoomVo> selectRoomPage(@Param("createBy") String createBy,
                                   @Param("apaRoom") ApaRoom apaRoom);

    /**
     * 导出
     */
    List<ApaRoomVo> export(@Param("createBy") String createBy);

}
